Skip to content

feature: Signer.create taking a JOSE.JWK - #448

Open
bobergj wants to merge 1 commit into
joken-elixir:mainfrom
nomasystems:feature/signer-create-jose-jwk
Open

feature: Signer.create taking a JOSE.JWK#448
bobergj wants to merge 1 commit into
joken-elixir:mainfrom
nomasystems:feature/signer-create-jose-jwk

Conversation

@bobergj

@bobergj bobergj commented Aug 3, 2026

Copy link
Copy Markdown

Adds support for passing a pre-parsed %JOSE.JWK{} directly to Joken.Signer.create/2, avoiding unnecessary re-parsing of the original JWK map.

Addresses #294.

This does not validate algorithm/key compatibility during signer creation (mentioned as a requirement in the issue discussion). That matches existing behavior: for example, Joken.Signer.create("ES256", rsa_jwk_map) already creates a signer, with the mismatch failing during verification. I think compatibility validation could be added separately and should not block this.

@victorolinasc

Copy link
Copy Markdown
Collaborator

Sorry for the delay! It seems fair enough to add this :)

I will take it for a spin tomorrow and come back to report. In any case, thanks for the contribution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants